package com.jt.www.common.service;

import com.github.pagehelper.PageInfo;
import com.jt.www.common.service.zqsign.dependency.ZQVO;
import com.jt.www.common.service.zqsign.param.agreement.Param;
import com.jt.www.model.zq.ZqContract;
import com.jt.www.model.zq.ZqParam;
import com.jt.www.model.zq.ZqVO;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletResponse;
import java.text.ParseException;
import java.util.List;

public interface ContractService {
    ZQVO createAgreement(Param agreement);

    String judgeIsSign(String idCode, String name);

    void updateAgreementStatus() throws ParseException;

    String updateAgreement(String no);

    ResponseEntity<?> saveAgreement(Param agreement) throws Exception;

    String contractFile(String userCode);

    List<ZqContract> contractFileList(String userCode);

    PageInfo<ZqVO> contractList(ZqParam zqParam) throws Exception;

    void contractListByExcel(ZqParam zqParam, HttpServletResponse response) throws Exception;
}
